package com.gator.desig_mode.itrator;



import java.util.Iterator;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class Client {


  public static void main(String[] args) {

/*    InfoCollege infoCollege = new InfoCollege();

    infoCollege.addDepartMent("网络工程系", "网络工程相关");
    infoCollege.addDepartMent("网络安全系", "网络安全相关");
    infoCollege.addDepartMent("原子物理系", "原子物理相关");
    infoCollege.addDepartMent("生物细胞系", "原子物理相关");
    infoCollege.addDepartMent("机枪大炮系", "原子物理相关");
    infoCollege.addDepartMent("伊尔-76系", "原子物理相关");

    Iterator iterator = infoCollege.createIterator();
    while (iterator.hasNext()) {
      iterator.next();
    }*/

    ComputerCollege computerCollege = new ComputerCollege();
    computerCollege.addDepartMent("计算机科学","");
    computerCollege.addDepartMent("计算机科学","");
    computerCollege.addDepartMent("计算机科学","");
    computerCollege.addDepartMent("计算机科学","");
    computerCollege.addDepartMent("计算机科学","");

    Iterator iterator = computerCollege.createIterator();

    while (iterator.hasNext()){
      iterator.next();
    }

  }

}
